package com.lcf.mytccaccount.concurrent;

public class TestSingleton {
    public static void main(String[] args) {
        SingletonExecutor pool = new SingletonExecutor("aaa");
        Task t1 = new Task(1, "任务" + 1);
        Task t2 = new Task(2, "任务" + 2);
        Task t3 = new Task(3, "任务" + 3);
        Task t4 = new Task(4, "任务" + 4);
        Task t5 = new Task(5, "任务" + 5);
        pool.execute(t1);
        pool.execute(t2);
        pool.execute(t3);
        pool.execute(t4);
        pool.execute(t5);


    }
}
